package com.banmao.desktoptools;

import com.banmao.desktoptools.baseScene.view.BaseSceneView;
import com.banmao.desktoptools.splashScreen.MySplashScreen;
import de.felixroske.jfxsupport.AbstractJavaFxApplicationSupport;
import javafx.application.Application;
import org.springframework.beans.factory.config.YamlProcessor;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.GenericApplicationContext;

//@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@SpringBootApplication
public class DesktopToolsApplication implements CommandLineRunner {


	public static void main(String[] args) {
		System.out.println("开始运行");
		//ConfigurableApplicationContext context = SpringApplication.run(DesktopToolsApplication.class, args);
		//SpringApplication.run(DesktopToolsApplication.class, args);

		//AbstractJavaFxApplicationSupport.launch(DesktopToolsApplication.class,
		//		FXMain.class, BaseSceneView.class, args);

		AbstractJavaFxApplicationSupport.launch(DesktopToolsApplication.class, FXMain.class, BaseSceneView.class, args);
	}

	@Override
	public void run(String... args) throws Exception {

	}
}
